<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd">
<%@ include file="/common/taglibs.jsp"%>

<div id="left">
<h2>Search in Compass Index</h2>
<div id="infobox">
	<s:form id="searchQueryForm" method="post" action="executeSearch.html">
			<fieldset><legend>Index Search Query</legend>
				<div class="notes">
			        <h4>Search Query Help</h4>		        
			        <p>You must entry an Lucene query string. Please look in the table below to see how this query must be composed!</p>
			        <p>The response is also printed in the console. Please read the console output!</p>
				</div>
				<div class="required wide niceclass">
					<s:textarea key="search" cssClass="inputTextarea" cssStyle="height: 196px;" theme="simple" />
				</div>
			</fieldset>
		<fieldset>
		<div class="submit">
			<div>
				<a class="button" href="javascript:submitQueryForm()"><span>Search</span></a>
			</div>
		</div>
		</fieldset>
	</s:form>
</div>

<br />

<b>Example of usage</b> 
<table border="1">
	<colgroup>
		<col />
		<col />
	</colgroup>
	<thead>
		<tr>
			<th>Expression</th>
			<th>Hits That</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>jack</td>
			<td>Contain the term <tt>jack</tt> in the default search field</td>
		</tr>
		<tr>
			<td>jack london (jack OR london)</td>
			<td>Contains the term <tt>jack</tt> or <tt>london</tt>, or both,
			in the default search field</td>
		</tr>
		<tr>
			<td>+jack +london (jack AND london)</td>
			<td>Contains both <tt>jack</tt> and <tt>london</tt> in the
			default search field</td>
		</tr>
		<tr>
			<td>name:jack</td>
			<td>Contains the term <tt>jack</tt> in the <tt>name</tt>
			property (meta-data)</td>
		</tr>
		<tr>
			<td>name:jack -city:london (name:jack AND NOT city:london)</td>
			<td>Have <tt>jack</tt> in the <tt>name</tt> property and don't
			have <tt>london</tt> in the <tt>city</tt> property</td>
		</tr>
		<tr>
			<td>name:"jack london"</td>
			<td>Contains the exact phrase <tt>jack london</tt> in the <tt>name</tt>
			property</td>
		</tr>
		<tr>
			<td>name:"jack london"~5</td>
			<td>Contain the term <tt>jack</tt> and <tt>london</tt> within
			five positions of one another</td>
		</tr>
		<tr>
			<td>jack*</td>
			<td>Contain terms that begin with <tt>jack</tt></td>
		</tr>
		<tr>
			<td>jack~</td>
			<td>Contains terms that are close to the word <tt>jack</tt></td>
		</tr>
		<tr>
			<td>birthday:[1870/01/01 TO 1920/01/01]</td>
			<td>Have the <tt>birthday</tt> values between the specified
			values. Note that it is a lexicography range</td>
		</tr>
	</tbody>
</table>
</div>